package com.efast.cafe.portal.service.base.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.efast.cafe.framework.service.CafeServiceImpl;
import com.efast.cafe.portal.bean.base.ProCityDistrictBean;
import com.efast.cafe.portal.dao.base.BaseProvinceDao;
import com.efast.cafe.portal.entity.base.BaseProvince;
import com.efast.cafe.portal.remote.base.BaseProvinceService;
import com.efast.cafe.portal.service.base.IBaseProvinceService;

@Service
@Transactional
public class BaseProvinceServiceImpl extends CafeServiceImpl<BaseProvince> implements IBaseProvinceService {

	public BaseProvinceDao baseProvinceDao;

	@Autowired
	public void setBaseProvinceDao(BaseProvinceDao baseProvinceDao) {
		this.baseProvinceDao = baseProvinceDao;
	}

	/**
	 * 通过国家查询省份
	 * {@inheritDoc} overridden:
	 * 
	 * @Date : 2016年11月30日
	 * @see org.eae.eldf.portal.remote.base.BaseProvinceService#queryAllProvinceByCountry(java.lang.String)
	 *
	 */
	@Override
	public List<BaseProvince> queryAllProvinceByCountry(String countryId) {
		return baseProvinceDao.queryAllProvinceByCountry(countryId);
	}

	@Override
	public List<ProCityDistrictBean> queryProCityDis() {
		return baseProvinceDao.queryProCityDis();
	}

}
